import java.util.*;

class Birthday{
    int _year;
    int _month;
    int _day;

    public  Birthday(int year,int month,int day) {
    _year = year;
    _month = month;
    _day = day;
    }

    public int getAge() {
        int age = 2017 - _year;
    if(_month==12&&_day>=25)
            age++;
        return age;
    }
}


public class Main4 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int year = sc.nextInt();
        int month = sc.nextInt();
        int day = sc.nextInt();

        Birthday a = new Birthday(year,month,day);

        System.out.print("age="+a.getAge());

        sc.close();
    }
}
